package com.lori.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lori.netshop.util.NetshopResult;
import com.lori.search.service.ItemService;
@Controller
@RequestMapping("/item")
public class ItemController {
	//注入service
	@Autowired
	private ItemService itemServiceimp;
	
	/**
	 * 向solr中导入数据
	 */
	@RequestMapping("importion")
	@ResponseBody
	public NetshopResult importion(){
		return itemServiceimp.writeToSolr();
	}
}
